#ifndef DIALOG_COMM_SETTING_H
#define DIALOG_COMM_SETTING_H

#include <QDialog>
#include<QSerialPortInfo>
#include<QSerialPort>
#include<QDebug>
#include "serial_connect.h"
#include<QMessageBox>

namespace Ui {
class Dialog_Comm_setting;
}

class Dialog_Comm_setting : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog_Comm_setting(QWidget *parent = nullptr);
    ~Dialog_Comm_setting();

signals:
    void send_port_settings(ModBSettings m_settings);

private slots:
    void on_pushButton_refresh_clicked();
    void on_ok_clicked();


private:
    Ui::Dialog_Comm_setting *ui;
    ModBSettings m_port_setting;

};

#endif // DIALOG_COMM_SETTING_H
